package com.xqboss.apps.mapper.consumer;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xqboss.apps.domain.consumer.ConsumerTeamMsgRecord;
import com.xqboss.apps.dto.consumer.ConsumerTeamMsgRecordDto;
import com.xqboss.apps.enums.consumer.ConsumerMsgRecordEnum;
import com.xqboss.apps.vo.consumer.ConsumerTeamMsgRecordVo;

import java.util.List;

/**
 * 队伍消息记录Mapper接口
 *
 * @author xqboss
 * @date 2023-08-18
 */
public interface ConsumerTeamMsgRecordMapper extends BaseMapper<ConsumerTeamMsgRecord> {
    /**
     * 查询队伍消息记录
     *
     * @param id 队伍消息记录主键
     * @return 队伍消息记录
     */
    public ConsumerTeamMsgRecord selectConsumerTeamMsgRecordById(Long id);

    /**
     * 查询队伍消息记录列表
     *
     * @param consumerTeamMsgRecord 队伍消息记录
     * @return 队伍消息记录集合
     */
    public List<ConsumerTeamMsgRecord> selectConsumerTeamMsgRecordList(ConsumerTeamMsgRecord consumerTeamMsgRecord);

    /**
     * 新增队伍消息记录
     *
     * @param consumerTeamMsgRecord 队伍消息记录
     * @return 结果
     */
    public int insertConsumerTeamMsgRecord(ConsumerTeamMsgRecord consumerTeamMsgRecord);

    /**
     * 修改队伍消息记录
     *
     * @param consumerTeamMsgRecord 队伍消息记录
     * @return 结果
     */
    public int updateConsumerTeamMsgRecord(ConsumerTeamMsgRecord consumerTeamMsgRecord);

    /**
     * 删除队伍消息记录
     *
     * @param id 队伍消息记录主键
     * @return 结果
     */
    public int deleteConsumerTeamMsgRecordById(Long id);

    /**
     * 批量删除队伍消息记录
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteConsumerTeamMsgRecordByIds(Long[] ids);

    List<ConsumerTeamMsgRecordVo> msgList(Integer teamId);

    /**
     * 获取最新的队伍消息记录id
     * @return
     */
    Integer findLastId();
}
